﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for StationPair
/// </summary>
[Serializable]
public class StationPair
{
	public StationPair()
	{
		//
		// TODO: Add constructor logic here
		//
	}
    public int stationA { get; set; }
    public int stationB { get; set; }
    public StationPair(int a, int b)
    {
        stationA = a;
        stationB = b;
    }
    public class EqualityComparer : IEqualityComparer<StationPair>
    {
        public bool Equals(StationPair x, StationPair y)
        {
            return ((x.stationA.Equals(y.stationA)) && (x.stationB.Equals(y.stationB)));
        }
        public int GetHashCode(StationPair x)
        {
            return x.stationA.GetHashCode() ^ x.stationB.GetHashCode();
        }
    }

}